﻿using System;
using DuckGame1._0.Duck;

namespace DuckGame1._0
{
    class Program
    {
        static void Main(string[] args)
        {

            //调用野鸭
            var md = new MallardDuck();
            Console.WriteLine(md.Duisplay() + "#" + md.Swing() + "#" + 
                md.FlyBehaviop.Fly() + "#" + md.QuackBehavior.Quack());


            //调用红头野鸭
            var rd = new RedHeadDuck() ;
            Console.WriteLine(rd.Duisplay() + "#" + rd.Swing() + "#" +
                rd.FlyBehaviop.Fly() + "#" + rd.QuackBehavior.Quack());

            //调用木头野鸭
            var wd = new WodenDuck();
            Console.WriteLine(wd.Duisplay() + "#" + wd.Swing() + "#" +
                wd.FlyBehaviop.Fly() + "#" + wd.QuackBehavior.Quack());

            //调用机器人野鸭
            var td = new TransFormerDuck();
            Console.WriteLine(td.Duisplay() + "#" + td.Swing() + "#" +
                td.FlyBehaviop.Fly() + "#" + td.QuackBehavior.Quack());

        }
    }
}
